<template>
  <div class="card">
    <img src="@/assets/img/bg.jpg">
    <div class="main">
      <span>{{data.weekday}}</span>
      <div class="content">
        <h1 class="text  lunar"> {{data.lunar}}</h1>
        <h2 class="text  date">{{data.date}} </h2>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'daypage',
  props: {
    data: Object
  }
}
</script>
<style lang="less" scoped>
.card {
  position: relative;
  margin: 14px;
  height: 180px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0, 0, 10px, 10px rgba(0, 0, 0, 0.5);
  img {
    position: absolute;
    width: 100%;
    height: 180px;
  }
}
.main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  span {
    display: block;
    font-size: 18px;
    padding-left: 20px;
    height: 30px;
    line-height: 30px;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.3);
  }
  .content {
    text-align: center;
  }
  h1 {
    margin-top: 20px;
    color: #d40404;
  }
  h2 {
    margin-top: 20px;
    color: #fff;
    font-size: 20px;
  }
}
</style>
